From: Marek Kasik Date: Tue, 12 Jul 2022 14:22:59 +0000 (+0200) Subject: print: Check button is not descendant of toggle button X-Git-Tag: archive/raspbian/4.8.3+ds-2+rpi1~3^2~81^2^2~70^2 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=e2049107304973a9e9fa978dd11e4c140bfb33b4;p=gtk4.git print: Check button is not descendant of toggle button GtkCheckButton is not derived from GtkToggleButton anymore. This caused some issues in GtkPrinterOptionWidget which did not port handling of the button. --- diff --git a/gtk/gtkprinteroptionwidget.c b/gtk/gtkprinteroptionwidget.c index 0ddef897ab..8ff622b8b3 100644 --- a/gtk/gtkprinteroptionwidget.c +++ b/gtk/gtkprinteroptionwidget.c @@ -34,7 +34,6 @@ #include "gtkliststore.h" #include "gtkcheckbutton.h" #include "gtkgrid.h" -#include "gtktogglebutton.h" #include "gtkorientable.h" #include "gtkprivate.h" #include "gtkstringlist.h" @@ -629,14 +628,14 @@ deconstruct_widgets (GtkPrinterOptionWidget *widget) } static void -check_toggled_cb (GtkToggleButton *toggle_button, +check_toggled_cb (GtkCheckButton *check_button, GtkPrinterOptionWidget *widget) { GtkPrinterOptionWidgetPrivate *priv = widget->priv; g_signal_handler_block (priv->source, priv->source_changed_handler); gtk_printer_option_set_boolean (priv->source, - gtk_toggle_button_get_active (toggle_button)); + gtk_check_button_get_active (check_button)); g_signal_handler_unblock (priv->source, priv->source_changed_handler); emit_changed (widget); }